package com.hinnotek.amoeba.ui.activity.old

import android.os.Bundle
import android.view.*
import com.lee.common.base.BaseActivity
import com.hinnotek.amoeba.R
import com.hinnotek.amoeba.databinding.ActivityProjectTrackingBinding
import com.hinnotek.amoeba.utilities.IntentUtils


class ProjectTrackingActivity : BaseActivity<ActivityProjectTrackingBinding>(), View.OnClickListener {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setLeftVisible(true)
        setTitle("项目追踪")

        setContentView(R.layout.activity_project_tracking)
    }

    override fun initVew() {
        bindingView.tvPtUserManager.setOnClickListener(this)
        bindingView.tvPtUserManager.setOnClickListener(this)
        bindingView.tvPtMakeAssociation.setOnClickListener(this)
    }

    override fun setData() {}
    override fun onClick(v: View) {
        val bundle = Bundle()
        when (v.id) {
            R.id.tv_pt_user_manager -> bundle.putInt("type", 0)
            R.id.tv_pt_project_manager -> {
                bundle.putInt("type", 1)
                IntentUtils.startActivity(mContext, PTCreateUserListActivity::class.java, bundle)
            }
            R.id.tv_pt_make_association -> IntentUtils.startActivity(
                mContext,
                PTCreateRelatedListActivity::class.java,
                bundle
            )
        }
    }
}